package com.canaan.business.controller.pc.storehouse;

import com.canaan.business.domain.bo.InventoryOverviewBo;
import com.canaan.business.domain.vo.InventoryOverviewVo;
import com.canaan.business.service.storehouse.IWmsStorehouseStockService;
import com.canaan.common.core.controller.BaseController;
import com.canaan.common.core.page.TableDataInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

import java.util.List;

import static com.canaan.common.core.domain.AjaxResult.success;

@Api(tags = "库存总览")
@RestController
@RequestMapping("/storehouse/InventoryOverview")
public class InventoryOverviewController extends BaseController {
    @Resource
    private IWmsStorehouseStockService wmsStorehouseStockService;

    /**
     * 查询库存总览
     */
    @ApiOperation(value = "查询库存总览")
    @GetMapping("/findInventoryOverview")
    private TableDataInfo findInventoryOverview(InventoryOverviewBo bo){
        startPage();
        List<InventoryOverviewVo> list = wmsStorehouseStockService.selectInventoryOverview(bo);
        return getDataTable(list);
    }
}
